package com.supreme.studyserver.service;

import com.supreme.studyserver.annotation.BasicHost;
import com.supreme.studyserver.interfacepkg.IUser;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class ValueService {

    @Value("${spring.supreme.tools.title}")
    private String supremeToolsTitle;

    @Value("${user.dir}")
    private String userDir;

    @Value("${JAVA_HOME}")
    private String javaHome;

    @Value("customValueTitle")
    private String customValueTitle;

    @Value("#{seniorUser}")
    private IUser seniorUser;

    @BasicHost
    private String baseHost;

    public String getJavaHome() {
        return javaHome;
    }

    public void printSupremeToolsTitle() {
        System.out.println("supremeToolsTitle: " + supremeToolsTitle);
        System.out.println("userDir: " + userDir);
        System.out.println("javaHome: " + javaHome);
        System.out.println("customValueTitle: " + customValueTitle);
        System.out.println("qumUser: " + seniorUser);
        System.out.println("baseHost: " + baseHost);
    }
}
